import Vue from 'vue'
import App from './App'
// 引入uView
import uView from "uview-ui";
Vue.use(uView);

//axios
import axios from 'axios';
Vue.prototype.$axios = axios; 
axios.defaults.timeout = 5000;   //响应时间
axios.defaults.withCredentials=false;//让请求头携带参数cookie
axios.defaults.baseURL = 'http://127.0.0.1:7001/';   //配置接口地址  
// axios.defaults.headers.authKey = Lockr.get('authKey');    //接口请求头authKey   按需修改
// axios.defaults.headers.sessionId =Lockr.get('sessionId');   //接口请求头sessionId  按需修改
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';  //配置请求头


Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
